package edu.ccdb.irods.dataType;

public class DataValue {
	
	private DataSectionType type;
	private Integer value;
	
	public DataValue ( String type, Integer value ) {
		this.type = DataSectionType.getType(type);
		this.value = value; 
	}
	
	public DataValue (DataSectionType type, Integer value ) {
		this.type = type;
		this.value = value;
	}
	
	public String toString(){
		return value.toString();
	}
	
	public String displayBothNames () {
		
		return "[" + value + "-" + type + "]" ;
	}
	
	public DataSectionType getType() {
		return type;
	}
	public Integer getValue() {
		return value;
	}	
}
